<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:import url="/jsp/pager/pagerForm.jsp"></c:import>

<form method="post" rel="pagerForm" action="<c:url value='/user/showList'/>" onsubmit="return navTabSearch(this)">
	<div class="pageHeader">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td><label>关键词：</label> <input type="text" name="keywords" value="${param.keywords}" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">搜索</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent">

	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" target="dialog" width="530" height="190" rel="userAdd" mask="true"
				href="<c:url value='/user/showAdd'/>" title="添加用户"><span>添加</span></a></li>
			<li><a class="edit" target="dialog" width="530" height="220" rel="userEdit" mask="true"
				href="<c:url value='/user/showEdit/{slt_objId}'/>" title="编辑用户"><span>编辑</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/user/delete/{slt_objId}'/>" title="你确定要删除吗?"><span>删除</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="javascript:$.printBox('user_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="user_list_print">
		<table class="list" width="100%" asc="asc" desc="desc" layoutH="116">
			<thead>
				<tr>
					<th width="25%">序号</th>
					<th width="25%" orderField="username" class="${pageHelper.orderField eq 'username' ? param.orderDirection : ''}">用户名</th>
					<th width="25%" orderField="realname" class="${pageHelper.orderField eq 'realname' ? param.orderDirection : ''}">姓名</th>
					<th width="25%" orderField="role" class="${pageHelper.orderField eq 'role' ? param.orderDirection : ''}">职务</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="item" items="${userList}" varStatus="s">
					<tr target="slt_objId" rel="${item.id }">
						<td>${s.index + 1}</td>
						<td>${item.username}</td>
						<td>${item.realname}</td>
						<td>${item.role}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>

	<c:import url="/jsp/pager/panelBar.jsp"></c:import>

</div>
